// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * CostSupplementFormSubtable
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "cost_supplement_form_subtable", autoResultMap = true)
@Schema(title = "成本补录单子表")
public class CostSupplementFormSubtable implements Serializable {

  /**
   * 所属成本补录单
   */
  @TableField(value = "`parent_cost_supplement_form`")
  @JoinField(CostSupplementForm.class)
  @Schema(title = "所属成本补录单")
  private Long parentCostSupplementForm;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 图片
   */
  @TableField(value = "`img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> img;

  /**
   * 品名
   */
  @TableField(value = "`trade_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long tradeName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 店铺
   */
  @TableField(value = "`shop`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shop;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 入库单号
   */
  @TableField(value = "`warehouse_entry_number`")
  @JoinField(StockIn.class)
  @Schema(title = "入库单号")
  private Long warehouseEntryNumber;

  /**
   * 入库量
   */
  @TableField(value = "`unit_stock`")
  @Schema(title = "入库量")
  private Integer unitStock;

  /**
   * 采购单价
   */
  @TableField(value = "`apuc`")
  @Schema(title = "采购单价")
  private java.math.BigDecimal apuc;

  /**
   * 单位费用
   */
  @TableField(value = "`unit_cost`")
  @Schema(title = "单位费用")
  private java.math.BigDecimal unitCost;

  /**
   * 单位入库成本
   */
  @TableField(value = "`unit_warehousing_cost`")
  @Schema(title = "单位入库成本")
  private java.math.BigDecimal unitWarehousingCost;

  /**
   * 货值
   */
  @TableField(value = "`value`")
  @Schema(title = "货值")
  private java.math.BigDecimal value;

  /**
   * 费用
   */
  @TableField(value = "`charge`")
  @Schema(title = "费用")
  private java.math.BigDecimal charge;

  /**
   * 入库成本
   */
  @TableField(value = "`arcd`")
  @Schema(title = "入库成本")
  private java.math.BigDecimal arcd;

  /**
   * 货值调整金额
   */
  @TableField(value = "`value_adjustment_amount`")
  @Schema(title = "货值调整金额")
  private java.math.BigDecimal valueAdjustmentAmount;

  /**
   * 费用调整金额
   */
  @TableField(value = "`expense_adjustment_amount`")
  @Schema(title = "费用调整金额")
  private java.math.BigDecimal expenseAdjustmentAmount;

  /**
   * 入库成本调整金额
   */
  @TableField(value = "`adjustment_cost`")
  @Schema(title = "入库成本调整金额")
  private java.math.BigDecimal adjustmentCost;
}
